package javacode.chapter06;

public class JavaScore {
    public float getAvgJava(ClassScore[] classScores){
        float sum_java=0;
        for (int i=0;i<classScores.length;i++){
            sum_java+=classScores[i].java;
        }
        return sum_java / classScores.length;
    }
}
